package com.molichuxing.job;

import com.molichuxing.service.ThirdMotJobService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@JobHandler(value="thirdMotStateHandler")
@Component
public class ThirdMotStateHandler extends IJobHandler {

    @Resource
    ThirdMotJobService thirdMotJobService;

    @Override
    public ReturnT<String> execute(String s) throws Exception {
        ReturnT<String> returnT = ReturnT.SUCCESS;
        Boolean result = thirdMotJobService.queryThirdMotState();
        returnT.setContent("第三方年检 车辆年检状态 定时任务的任务结果result："+ result);
        return returnT;
    }
}
